BOT_ROOT = File.expand_path(File.join(File.dirname(__FILE__), ".."))

$:.unshift File.join(BOT_ROOT, "lib")
$:.unshift File.join(BOT_ROOT, *%w"vendor tcl lib")

require "rubygems"
require "ext/hash_with_indifferent_access"
require "ext/drb"

require "resolv-replace"
require "yaml"

require "tcl_bot"

BOT_CONFIG = YAML.load(IO.read(File.join(BOT_ROOT, *%w"config tcl_bot.yml"))).with_indifferent_access
